//
//  FrdAddSucceedViewController.m
//  SIPphone
//
//  Created by wrt on 13-11-28.
//  Copyright (c) 2013年 wrtsoft. All rights reserved.
//

#import "FrdAddSucceedViewController.h"

@interface FrdAddSucceedViewController ()
{
    NSString *tempUserName;
    NSString *tempDisplayName;
    NSString *tempIpPort;
}

@end

@implementation FrdAddSucceedViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
        self.title = @"同意添加信息";
    }
    return self;
}

- (id)initWithUserName:(NSString *)userName andDisplayName:(NSString *)displayName andipPort:(NSString *)ip
{
    self = [super init];
    if (self)
    {
        tempUserName = [[NSString alloc] init];
        tempDisplayName = [[NSString alloc] init];
        tempIpPort = [[NSString alloc] init];
        tempUserName = userName;
        tempDisplayName = displayName;
        tempIpPort = ip;
    }
    return self;
}


- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    self.userNameLabel.text = tempUserName;
    self.displayNameLabel.text = tempDisplayName;
    self.ipPortLabel.text = tempIpPort;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
